from django.db import models


# Create your models here.
# 注册数据表模型
class Family(models.Model):
    name = models.CharField(verbose_name="姓名", max_length=32)
    age = models.IntegerField(verbose_name="年龄")
    nick_name = models.CharField(verbose_name="昵称/关系", max_length=32)

    class Meta:
        # 指定表名
        # db_table = 'family'
        
        # 表注释
        verbose_name = '家庭表'
